﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="OrderList.aspx.cs" Inherits="ProductManager_OrderList" Title="无标题页" %>
<%@ MasterType VirtualPath="~/ProductManager/ProductManage.Master" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
<ContentTemplate>
    <table cellpadding="0" cellspacing="0" width="800px">
    <tr>
    <td style="width: 200px">日期:<cc1:ZLTextBox ID="txtOrderCode" runat="server" Height="22px" 
                    InputType="date" Width="150px"/></td>
    <td>订单号:<cc1:ZLTextBox ID="txtOrder" runat="server"/>
                <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" Text="查找" /></td>
    </tr>
    </table>
    <table class="style1" cellpadding="0" cellspacing="0"  >
        <tr>
            <td align="left">
                订单列表:
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:ListView ID="lvOrderList" runat="server" 
                    onitemcommand="lvOrderList_ItemCommand" >
                <LayoutTemplate>
                 <table style="width:800px">
                    <thead align="left">
                    <th style="width:100px">订单号</th>
                    <th>姓名</th>
                    <th>合计</th>
                    <th>邮费</th>
                    <th>当前状态</th>
                    <th>订单日期</th>
                    <th>设置状态</th>
                    </thead>
                    <tbody id="itemPlaceholder" runat="server">
                    </tbody>
                 </table>
                 <asp:DataPager ID="DataPager1" PagedControlID="lvOrderList" PageSize="10" runat="server"><Fields><asp:NumericPagerField /></Fields></asp:DataPager>
                </LayoutTemplate>
                <ItemTemplate>
                <tr>
                <td>
                <asp:Label ID="btnPrdt" runat="server" Text='<%# Eval("OrderCode") %>'></asp:Label>
                </td>
                <td>
                <asp:Label ID="lblTotal" Text='<%# Eval("UserName") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:Label ID="Label3" Text='<%# Eval("TotalPrice") %>' runat="server"></asp:Label>
                </td>                     
                <td>
                <asp:Label ID="Label2" Text='<%# Eval("PostPrice") %>' runat="server"></asp:Label>
                </td>                
                <td>
                <asp:Label ID="Label1" Text='<%# Eval("State") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:Label ID="lblPrice" Text='<%# Eval("OrderCreateDate") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:LinkButton ID="btnSend" Text="详细" runat="server" CommandName="OrderDetail" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                <%--<asp:LinkButton ID="btnFinish" Text="结单" runat="server"></asp:LinkButton>--%>
                </td>
                </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                  <table style="width:800px">
                    <thead align="left">
                    <th style="width:100px">订单号</th>
                    <th>姓名</th>
                    <th>合计</th>
                    <th>邮费</th>
                    <th>当前状态</th>
                    <th>订单日期</th>
                    <th>设置状态</th>
                    <tbody>
                    <tr>
                    <td><asp:Label ID="label1" runat="server" Text="没有订单数据!"></asp:Label></td>
                    </tr>
                    </tbody>
                  </thead>
                    </table>
                </EmptyDataTemplate>
                </asp:ListView>
            </td>
        </tr>
    </table>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

